package com.ruoyi.service.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 耗材包对象 service_packages
 * 
 * @author ZDL
 * @date 2024-10-21
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ServicePackages extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 耗材包ID */
    private Long packagesId;

    /** 耗材包代码 */
    @Excel(name = "耗材包代码")
    private String packagesCode;

    /** 耗材包名称 */
    @Excel(name = "耗材包名称")
    private String packagesName;

    /** 耗材包单价 */
    @Excel(name = "耗材包单价")
    private Long packagesPrice;

    /** 单位 */
    @Excel(name = "单位")
    private String packagesPerunit;

    /** 创建者 */
    @Excel(name = "创建者")
    private String packagesCreateBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date packagesCreateTime;

    /** 更新者 */
    @Excel(name = "更新者")
    private String packagesUpdateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date packagesUpdateTime;

    /** 是否启用 */
    @Excel(name = "是否启用")
    private String packagesUseFlag;

    /** 删除标志 */
    @Excel(name = "删除标志")
    private String packagesDelFlag;

    /** 备注 */
    @Excel(name = "备注")
    private String packagesRemark;

    /** 耗材包明细 */
    @Excel(name = "耗材明细")
    private List<ServiceSupplies> packagesSupplies;

    public List<ServiceSupplies> getPackagesSupplies() {
        return packagesSupplies;
    }
    public void setPackagesSupplies(List<ServiceSupplies> packagesSupplies) {
        this.packagesSupplies = packagesSupplies;
    }
    public void setPackagesId(Long packagesId) 
    {
        this.packagesId = packagesId;
    }

    public Long getPackagesId() 
    {
        return packagesId;
    }
    public void setPackagesCode(String packagesCode) 
    {
        this.packagesCode = packagesCode;
    }

    public String getPackagesCode() 
    {
        return packagesCode;
    }
    public void setPackagesName(String packagesName) 
    {
        this.packagesName = packagesName;
    }

    public String getPackagesName() 
    {
        return packagesName;
    }
    public void setPackagesPrice(Long packagesPrice) 
    {
        this.packagesPrice = packagesPrice;
    }

    public Long getPackagesPrice() 
    {
        return packagesPrice;
    }
    public void setPackagesPerunit(String packagesPerunit) 
    {
        this.packagesPerunit = packagesPerunit;
    }

    public String getPackagesPerunit() 
    {
        return packagesPerunit;
    }
    public void setPackagesCreateBy(String packagesCreateBy) 
    {
        this.packagesCreateBy = packagesCreateBy;
    }

    public String getPackagesCreateBy() 
    {
        return packagesCreateBy;
    }
    public void setPackagesCreateTime(Date packagesCreateTime) 
    {
        this.packagesCreateTime = packagesCreateTime;
    }

    public Date getPackagesCreateTime() 
    {
        return packagesCreateTime;
    }
    public void setPackagesUpdateBy(String packagesUpdateBy) 
    {
        this.packagesUpdateBy = packagesUpdateBy;
    }

    public String getPackagesUpdateBy() 
    {
        return packagesUpdateBy;
    }
    public void setPackagesUpdateTime(Date packagesUpdateTime) 
    {
        this.packagesUpdateTime = packagesUpdateTime;
    }

    public Date getPackagesUpdateTime() 
    {
        return packagesUpdateTime;
    }
    public void setPackagesUseFlag(String packagesUseFlag) 
    {
        this.packagesUseFlag = packagesUseFlag;
    }

    public String getPackagesUseFlag() 
    {
        return packagesUseFlag;
    }
    public void setPackagesDelFlag(String packagesDelFlag) 
    {
        this.packagesDelFlag = packagesDelFlag;
    }

    public String getPackagesDelFlag() 
    {
        return packagesDelFlag;
    }
    public void setPackagesRemark(String packagesRemark) 
    {
        this.packagesRemark = packagesRemark;
    }

    public String getPackagesRemark() 
    {
        return packagesRemark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("packagesId", getPackagesId())
            .append("packagesCode", getPackagesCode())
            .append("packagesName", getPackagesName())
            .append("packagesPrice", getPackagesPrice())
            .append("packagesPerunit", getPackagesPerunit())
            .append("packagesCreateBy", getPackagesCreateBy())
            .append("packagesCreateTime", getPackagesCreateTime())
            .append("packagesUpdateBy", getPackagesUpdateBy())
            .append("packagesUpdateTime", getPackagesUpdateTime())
            .append("packagesUseFlag", getPackagesUseFlag())
            .append("packagesDelFlag", getPackagesDelFlag())
            .append("packagesRemark", getPackagesRemark())
            .append("packagesSupplies", getPackagesSupplies())
            .toString();
    }
}
